// 平台配置
export const PLATFORMS = {
  taobao: { label: "淘宝", type: "warning" },
  pinduoduo: { label: "拼多多", type: "danger" },
  douyin: { label: "抖音", type: "success" },
  xiaohongshu: { label: "小红书", type: "info" },
  jingdong: { label: "京东", type: "primary" },
};

// 快递公司配置
export const EXPRESS_COMPANIES = {
  zhongtong: "中通",
  yunda: "韵达",
  shentong: "申通",
  yuantong: "圆通",
  youzheng: "邮政",
  jitu: "极兔",
  shunfeng: "顺丰",
  debang: "德邦",
};

// 交易方式配置
export const PAYMENT_METHODS = {
  wechat_pay: "微信支付",
  alipay: "支付宝",
  bank_card: "银行卡",
  cash: "现金",
  refund: "退单",
  transfer: "转单",
  transit_fee: "中转费抵扣",
  other: "其他方式",
};

// 客户状态配置
export const CUSTOMER_STATUS = {
  active: { label: "启用", type: "success" },
  inactive: { label: "禁用", type: "danger" },
};

// 分页配置
export const PAGINATION_SIZES = [10, 20, 50, 100];

// 表单验证规则
export const VALIDATION_RULES = {
  name: [
    { required: true, message: "请输入姓名", trigger: "blur" },
    { min: 2, max: 50, message: "姓名长度在 2 到 50 个字符", trigger: "blur" },
  ],
  phone: [
    { required: true, message: "请输入手机号", trigger: "blur" },
    {
      pattern: /^1[3-9]\d{9}$/,
      message: "请输入正确的手机号",
      trigger: "blur",
    },
  ],
  prepaidAmount: [
    { required: true, message: "请输入面单预充金额", trigger: "blur" },
    { type: "number", min: 0, message: "金额不能小于0", trigger: "blur" },
  ],
  alias: [{ max: 50, message: "别名长度不能超过 50 个字符", trigger: "blur" }],
  wechat: [
    { max: 50, message: "微信号长度不能超过 50 个字符", trigger: "blur" },
  ],
};
